exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 221 discussion

Within an IAM policy, can you add an IfExists condition at the end of a Null condition?

  • A. Yes, you can add an IfExists condition at the end of a Null condition but not in all Regions.
  • B. Yes, you can add an IfExists condition at the end of a Null condition depending on the condition.
  • C. No, you cannot add an IfExists condition at the end of a Null condition.
  • D. Yes, you can add an IfExists condition at the end of a Null condition.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Within an IAM policy, IfExists can be added to the end of any condition operator except the Null condition. It can be used to indicate that conditional comparison needs to happen if the policy key is present in the context of a request; otherwise, it can be ignored.
Reference:
http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
amministrazione
10 months, 2 weeks ago
C. No, you cannot add an IfExists condition at the end of a Null condition.
upvoted 1 times
...
SkyZeroZx
2 years ago
Selected Answer: C
C. No, you cannot add an IfExists condition at the end of a Null condition. In IAM policies, conditions allow you to specify additional constraints for when a policy statement should be evaluated. However, there is no direct support for an "IfExists" condition in IAM policies. The available condition operators in IAM policies include Null, StringEquals, NumericEquals, Bool, and so on, but "IfExists" is not one of them. The Null condition checks if a specific key exists in the request context but doesn't evaluate the value of that key. It cannot be combined with an IfExists condition as there is no IfExists condition in IAM policies.
upvoted 2 times
...
Sizuma
2 years, 10 months ago
Within an IAM policy, IfExists can be added to the end of any condition operator except the Null condition. It can be used to indicate that conditional comparison needs to happen if the policy key is present in the context of a request; otherwise, it can be ignored. http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html C is correct
upvoted 1 times
...
cldy
3 years, 6 months ago
C. No, you cannot add an IfExists condition at the end of a Null condition.
upvoted 2 times
...
01037
3 years, 9 months ago
Thank you
upvoted 1 times
...
M_Asep
3 years, 9 months ago
C You can add IfExists to the end of any condition operator name except the Null condition—for example, StringLikeIfExists. You do this to say "If the policy key is present in the context of the request, process the key as specified in the policy. If the key is not present, evaluate the condition element as true." Other condition elements in the statement can still result in a nonmatch, but not a missing key when checked with ...IfExists.
upvoted 2 times
01037
3 years, 9 months ago
Thank you It's B
upvoted 1 times
01037
3 years, 8 months ago
I mean C
upvoted 1 times
...
...
...
NKnab
3 years, 9 months ago
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_IfExists
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...