AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 134
You can use the ____ command of the AWS Config service CLI to see the compliance state of each of your rules.
Answer options
- A. get-compliance-details-by-resource
- B. describe-compliance-by-config-rule
- C. get-compliance-details-by-config-rule
- D. describe-compliance-by-resource
Correct answer: B
Explanation
The correct command is 'describe-compliance-by-config-rule', which provides the compliance status for each rule defined in AWS Config. The other options either reference resources instead of rules or do not accurately reflect the command needed to obtain compliance details.