Skip to main content

DVA-C02 practice question · Security

A developer is comparing AWS managed KMS keys (such as aws/s3) with customer managed KMS keys (symmetric, with key…

A developer is comparing AWS managed KMS keys (such as aws/s3) with customer managed KMS keys (symmetric, with key material generated by AWS KMS). Which statement correctly describes automatic key rotation for these two key types?

  • AAWS managed keys rotate every year and you can't change that; for customer managed keys, automatic rotation is optional and the rotation period is configurable
  • BBoth key types rotate every year by default, and you can turn off automatic rotation for either type with the DisableKeyRotation API
  • CAWS managed keys rotate every three years with no configuration; customer managed keys rotate every year by default once they are created
  • DAWS managed keys rotate only when an administrator starts an on-demand rotation; customer managed keys rotate on a fixed yearly schedule
Show the answer and explanation

Correct answer: A) AWS managed keys rotate every year and you can't change that; for customer managed keys, automatic rotation is optional and the rotation period is configurable

AWS KMS rotates AWS managed keys automatically every year, and customers can't change this. For customer managed keys, automatic rotation is optional, defaults to 365 days when enabled, and can use a custom rotation period. On-demand rotation is also available.

Why each option is right or wrong

  • A) Correct. AWS KMS rotates AWS managed keys every year (about 365 days), and you can't enable, disable, or change that rotation. For customer managed keys, automatic rotation is optional. When you enable it, the default period is 365 days, but you can set a custom RotationPeriodInDays. On-demand rotation is also available.
  • B) Incorrect. You can't enable or disable rotation for AWS managed keys. Only customer managed keys let you turn automatic rotation on or off.
  • C) Incorrect. In May 2022 AWS KMS changed AWS managed key rotation from every three years to every year. Customer managed keys don't rotate automatically by default; you have to enable automatic rotation.
  • D) Incorrect. This reverses the two key types. AWS managed keys rotate automatically every year. Automatic rotation for customer managed keys is optional and its period can be configured; on-demand rotation applies to customer managed keys.
Exam domain
Security · 26% of DVA-C02
Question type
Multiple choice (one answer)

Practise the full DVA-C02 exam

This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.

Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.