Declarative and imperative management · Question 2 of 12

Which command creates missing objects from a file and updates existing ones?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • D kubectl apply -f app.yaml

Explanation

create fails if the object already exists, replace fails if it is still missing. apply handles both cases.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications