Chef Certification Interview Questions and Answers (2027)

Chef's Associate Chef Engineer and Certified Chef Architect tracks explained, plus 31 interview questions on cookbooks, Policyfiles and testing.

Sep 16, 2025 - 12:14
Nov 17, 2026 - 23:20
 0  35
TOPICInterview Q & APractical guide
Chef Certification Interview Questions and Answers (2027)

Progress Chef currently offers two certification tracks on its own site: Associate Chef, which leads to the Associate Chef Engineer certification through a multiple-choice exam plus lab tasks with a 75% pass mark, and Executive Chef, which leads to Certified Chef Architect through mentor-led, hands-on work. Interview questions for certified candidates follow the same skills: cookbooks, Policyfiles, testing and running Chef Infra Client.

This page explains the certification program using Chef's own description, then gives 31 interview questions mapped to what the Associate track asks you to do. It belongs to our infrastructure as code guide, and the main Chef question bank is the most asked Chef Infra interview questions. Facts were checked against chef.io and docs.chef.io in November 2026.

Key takeaways

  • Chef's certification blog (posted 2 April 2024, updated 10 June 2025) describes two tracks: Associate Chef and Executive Chef.
  • The Associate track combines a multiple-choice exam with lab tasks, needs 75% to pass, and requires you to publish a cookbook in a working Chef environment in the Learn Chef Lab.
  • The Executive track is mentor-led: you architect, implement, operationalize and troubleshoot Chef with a Principal Chef Consultant.
  • You must finish within six months and get up to three attempts. Chef does not publish prices on the page; they appear at registration or through the Progress Education Community.
  • Chef Infra Client 19 is the long-term support release, built on Chef Habitat, with 19.4.46 released on 19 October 2026.

The Chef certification tracks

TrackCertification earnedWho it is forHow it is assessed
Associate ChefAssociate Chef EngineerOperational users who write cookbooksMultiple-choice exam plus lab tasks; 75% to pass; publish a cookbook in the Learn Chef Lab
Executive ChefCertified Chef ArchitectArchitects who drive architecture, cookbook development and Chef operationsMentor-led hands-on tasks with a Principal Chef Consultant in the Learn Chef Lab

The process on Chef's page is short: choose a track, pay (online, by email to the Learn Chef team, or through a Progress account manager), complete the exam and lab tasks, and finish within six months with up to three attempts. Free on-demand tutorials are available on Learn Chef before you start. Learn Chef Premium is a separate paid, self-paced training product with lab access; it is training, not a certification.

Older Chef exams that you may still see on CVs or in forum posts are not described on the current page. If a candidate or a job advert names one, ask which track it maps to today, and check Chef's site rather than third-party practice-exam sites, which often carry outdated formats and prices.

Why the lab part matters for interviews

Because the Associate track asks you to publish a working cookbook, interviewers can reasonably expect certified candidates to talk through that process in detail: generating a cookbook, writing recipes and a custom resource, testing it with Test Kitchen and InSpec, locking dependencies with a Policyfile and pushing it to a policy group. The questions below follow that order. If you hold the certification, use these to rehearse. If you do not, they still cover what a Chef interview will test.

Cookbook and recipe questions

1. What is a cookbook?

The unit of configuration and distribution in Chef Infra. It holds recipes, attributes, files, templates, custom resources and metadata for one area of configuration, such as a web server or a database client.

2. What is a recipe?

A Ruby file in a cookbook that declares resources in the order Chef Infra Client should apply them. A run-list names the recipes a node runs.

3. What is a resource?

A statement of desired state for one piece of the system, such as a package, a service or a file, with properties and an action. Chef Infra Client compares the current state with the desired state and only acts when they differ.

4. What does idempotent mean in Chef?

Running the same cookbook twice gives the same result, and the second run changes nothing if the system is already correct. Interviewers often ask how you check this: converge twice in Test Kitchen and confirm the second run reports no updated resources.

5. How do you create a custom resource?

Write it in Ruby in the cookbook's resources directory. chef generate resource creates the directory, which does not exist by default. Declare properties with a name, a Ruby type and an optional default, and define each action in an action block.

provides :app_config

property :port, Integer, default: 8080

action :create do
  template '/etc/app/app.conf' do
    source 'app.conf.erb'
    variables(port: new_resource.port)
  end
end

6. Which action is the default in a custom resource?

The first action listed. Interviewers ask this to see whether you have actually written one.

7. What does provides do?

It makes the custom resource available under the given name for use in recipes.

8. What is unified mode?

A mode where the compile and converge phases of an action block run in a single pass, which removes many ordering surprises. It has been on by default since Chef Infra Client 18. In version 17 and earlier you enabled it with unified_mode true.

Policyfile questions

9. What is a Policyfile?

A file, Policyfile.rb, that defines a policy: its name, its run-list, where cookbooks come from and which cookbooks and versions to use. Because the policy and its lock file travel together, the same code reaches every node in a policy group.

10. Which fields does a Policyfile need?

name and run_list are required. default_source sets where cookbooks not declared with cookbook are found, and supports :artifactory, :chef_repo, :chef_server and :supermarket.

name 'web'
default_source :supermarket
run_list 'web_app::default'
cookbook 'web_app', path: '.'

11. What is Policyfile.lock.json?

The lock file written by chef install. It records the exact cookbook versions, a content hash for each, their sources and the included attributes, so every node in a policy group gets the same code.

12. What do chef install, chef update and chef push do?

chef install resolves the policy and writes the lock file. chef update re-resolves within the version constraints and regenerates it. chef push uploads the lock file and its cookbooks to Chef Infra Server for a named policy group.

13. What is a policy group?

A set of nodes that share the same policy revision, such as dev, staging or production. You promote a change by pushing the same lock file to the next group.

Testing questions

14. What does kitchen test do?

It runs the full Test Kitchen cycle: destroy any existing instance, create a new one, converge it with Chef Infra Client, verify it with InSpec, then destroy it. It stops at the first failure and leaves the instance in place so you can debug.

15. How do you check an instance's state?

kitchen list shows each instance and its last action, such as Verified or Not Created.

16. What is Chef InSpec used for here?

Writing tests that describe the expected state of the converged machine, for example that a package is installed and a port is listening. In the Test Kitchen cycle, InSpec runs in the verify step. The docs site listed InSpec 7.3 as its newest documented version in November 2026.

17. How do you test that a cookbook is idempotent?

Converge the instance twice and check that the second run updates no resources. Any resource that changes on every run, such as a command without a guard, is the usual cause.

18. What is a guard?

A condition on a resource, written with only_if or not_if, that decides whether the resource runs. Guards are how you make execute resources idempotent.

Running Chef Infra Client questions

19. What is the current Chef Infra Client release line?

Chef Infra Client 19 is the long-term support version. The release notes listed 19.4.46, released on 19 October 2026, as the newest 19.x build when we checked.

20. How is Chef Infra Client 19 packaged?

It is built entirely on Chef Habitat, and no traditional Omnibus builds are provided. Version 19.4.46 added native packages for Apple Silicon Macs.

21. What happens during a Chef Infra Client run, in broad terms?

The Chef Infra Client 19 docs describe twelve steps. In short: read client.rb and collect system data with Ohai, authenticate to Chef Infra Server with an RSA private key, rebuild the node object, expand the run-list, synchronize cookbooks, reset attributes, compile the resource collection (libraries, attributes, custom resources, then recipes), converge each resource in order, save the node object and run handlers, run the Compliance Phase with Chef InSpec, send the compliance report, and wait for the next run. Interviewers often ask for this order.

22. Where do attributes come from?

During a run, attributes are reloaded from cookbook attribute files, Policyfiles and Ohai, and combined according to attribute precedence. When you set a value in an interview answer, say where you set it and why that level wins.

Scenario questions

23. What is the difference between the compile phase and the converge phase?

In the compile phase Chef Infra Client loads libraries, attributes, custom resources and then recipes in run-list order, building the resource collection. Nothing on the system changes yet. In the converge phase it takes each resource in order and brings the system to the declared state. Plain Ruby written in a recipe outside a resource runs while the recipe is compiled, which is why it can see values that a later resource has not yet set. That timing confusion is behind many "why is this variable empty?" questions.

24. What is the Compliance Phase?

A step near the end of a Chef Infra Client run in which Chef InSpec runs compliance tests, after which the client sends or saves the compliance report. It lets the same client run that configures a node also check it against your compliance profiles, so you do not need a separate scheduler for scans.

25. Kitchen stopped after converge and never ran the InSpec tests. Why?

Test Kitchen aborts the run on an instance at the first sign of trouble, so a failed Chef Infra Client run means verify never starts, and the instance is left in place rather than destroyed. Fix the converge error first, using the instance that was kept for debugging, then run the tests again.

26. A cookbook works in Test Kitchen but fails on production nodes. What do you check?

Compare the platform and version used in Kitchen with production, check attributes that differ between the policy groups, check access to package repositories and secrets in production, and compare the lock file revision on the failing nodes with the one you tested.

27. Two teams need different versions of the same cookbook. How do Policyfiles help?

Each team's policy has its own lock file, so each pins the version it tested. There is no shared environment constraint for them to fight over.

28. A change must reach staging before production. How do you do it?

Run chef update or chef install, push the lock file to the staging policy group, test, then push the same lock file to production. The content hashes ensure production gets exactly what staging ran.

29. An execute resource runs on every Chef run. How do you fix it?

Add a guard such as not_if that checks whether the work is already done, or replace the command with a built-in resource that is idempotent by design.

30. Is the Associate Chef Engineer certification worth it?

If your job uses Chef, it gives a structured goal and a hands-on lab that matches real work. It does not guarantee a role. Interviewers will still ask you to explain cookbooks you wrote.

31. How should I prepare for both the certification and the interview?

Do the free Learn Chef tutorials, build a cookbook with a custom resource, test it with Test Kitchen and InSpec, wrap it in a Policyfile and push it through two policy groups. Then practice with the real-time Chef questions, the advanced Chef Infra questions and the Chef scenario-based questions.

Learning configuration management with us

We do not run a Chef-specific course. The ideas you need (desired state, idempotency, testing and promoting configuration) are taught hands-on in our Ansible course, in the Kharadi, Pune classroom and live online across India. For other interview topics, use the 200+ DevOps interview questions hub and the Chef interview preparation guide.

FAQs

What Chef certifications are available?

Chef's site describes two tracks: Associate Chef, leading to Associate Chef Engineer, and Executive Chef, leading to Certified Chef Architect.

What is the pass mark for the Associate Chef exam?

75%, according to Chef's certification page. The track combines a multiple-choice exam with lab tasks, including publishing a cookbook in the Learn Chef Lab.

How much does Chef certification cost?

Chef does not list prices on its certification page. It says pricing is shown at registration or through the Progress Education Community.

How long do I have to complete a Chef certification?

Six months, with up to three attempts, according to Chef.

Which Chef Infra Client version should I study?

Chef Infra Client 19, the long-term support release. Version 19.4.46 was released on 19 October 2026.

Is the Executive Chef track an exam?

It is mentor-led, hands-on work in which you architect, implement, operationalize and troubleshoot Chef with a Principal Chef Consultant.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.