Course outline

AWS / Basic: cloud scope and core boundaries / Lesson 7

Identify the AWS caller and target before a change

Review credential source, caller identity, account and Region together before an authorized AWS operation.

About 23 min read20 worked examples20 practice exercisesContent reviewed
On this page

Lesson goals

  • Distinguish a profile label from the authenticated principal.
  • Compare identity, account, Region and target before a change.
  • Explain why identity evidence alone does not establish permission.
  • Compare expected and observed caller, target and Region fields before a synthetic change.
  • Diagnose configuration precedence and distinguish identity evidence from authorization.

Separate the labels from the request

A profile selects configuration; its name does not prove the account or principal making a request. Environment settings and role configuration can affect the effective context. Consult the relevant tool documentation for precedence. Record the intended account, Region and operation without recording credentials.

Write an expected context

This fictional checklist records expectations before a service request. Compare it with independently obtained evidence and stop if the target differs. A Region identifies a service context, not an authorization grant. A familiar profile name is no substitute for the actual caller.

yaml Expected lab context
profile_label: course-lab
expected_account: 111122223333
expected_role: training-reader
region: us-east-1
operation: inventory-review

These fields are a fictional review checklist, not an AWS CLI command or a credential configuration.

Observe the caller separately

STS GetCallerIdentity returns information about the IAM user or role whose credentials make that request. The observation below is invented; no service was contacted. Compare account and principal with the approved record, then separately confirm the target Region and resource.

yaml Synthetic observation
observed_account: 111122223333
observed_principal: assumed-role/training-reader/lab-session
observed_region: us-east-1
match: review-required

The match remains subject to review because the identity record does not prove the intended resource, permission or service endpoint.

Check authorization and target

A matching caller may still lack permission or address the wrong resource. Identify the exact action and resource and review applicable policies and conditions with the owner. Correct a wrong credential source or target under the approved procedure instead of widening an unrelated policy.

Retest and preserve evidence

After a reviewed correction, repeat the intended read-only operation in an authorized lab using the same verified identity and target. Preserve a sanitized timestamp, request identifier when available and result. Check an appropriately approved negative case; stop if evidence contradicts the hypothesis.

Compare an expected contract with observations

Before a change, write an expected request contract: approved account, principal or role, partition, Region when relevant, service, action, exact resource and intended outcome. Add the owner, change reference and validity period. These fields answer different questions. A profile name is a local label, while an account ID and principal ARN identify the observed caller context; neither identifies the intended object or proves authorization for a later service request.

Compare each field with independently obtained, sanitized evidence. A mismatch is a stop condition for the proposed change, not a reason to create a similarly named resource. If an observation is missing or stale, mark that field unknown and obtain current authorized evidence. Keep expected and observed values separate so a copied expectation cannot masquerade as an observation. The following records are fictional and make no AWS request.

Understand how configuration selects a caller

AWS CLI configuration can come from command-line options, environment variables and configuration or credential sources, among others. For settings such as Region, an explicit command-line option can override the corresponding environment and profile setting. Credential provider selection has its own documented order and depends on the chosen configuration; do not infer the authenticated identity from the name of a profile or from a Region setting. Different tools can use different provider chains, so consult the documentation for the actual tool and version.

Role assumption adds another identity boundary: the source principal obtains a role session, and the resulting session makes subsequent requests. The session ARN and account should be compared to the approved role path. A familiar session label is not a substitute for the full observed principal, and an earlier caller observation may no longer apply after a credential refresh or role change. Never place access keys or session tokens in a review record.

Interpret caller identity evidence carefully

STS GetCallerIdentity reports the account, ARN and user identifier associated with the credentials used for that request. It does not report the target resource for a later service call, the later request’s Region, or whether an action on that resource is permitted. Record those independently. A successful caller observation is evidence about one request at one time, not a permanent guarantee that a different process or future command uses the same credentials.

An assumed-role ARN identifies a session of the role, while the approved record may describe the role itself. Compare the account and role path as well as the session context under the organization’s rules; do not blindly compare only a friendly name or assume the session label proves a human identity. Sanitized evidence may include time, caller ARN, account, source type and request identifier if available. Preserve no secret credential values or signed request material.

Resolve the target and authorization separately

The target includes the service, resource identity, account or owner where applicable, Region or other relevant scope, and action. A correct account with the wrong Region can produce an empty regional inventory. A correct Region with the wrong resource identifier can affect a different object. Some services have global or service-specific scopes, so determine the scope of the particular operation rather than assuming every resource is regional.

A caller identity match establishes neither a policy grant nor the absence of an explicit deny. For an object read, check the exact bucket, key, action and applicable identity, resource, endpoint and key policies as appropriate. AccessDenied is different evidence from a successful empty list. Investigate the action and policy context with the owner; widening unrelated privileges does not repair an incorrect target or credential source.

Retest a bounded hypothesis

Make the planned intervention reviewable before executing it: record the expected context, safe observations, mismatch or failure hypothesis, proposed correction and a check that would disprove the hypothesis. Correct the actual source or target through the authorized process, then repeat the caller and target checks because credentials or configuration may have changed. A single earlier observation cannot prove that a different shell, job or session has the same context.

In an authorized isolated environment, use a read-only positive check and an appropriate approved negative case, recording the timestamp and sanitized result. A static checklist is intent, not a successful cloud test. Avoid logging secrets, tokens or signed URLs, and stop if the observed principal, Region or resource differs from the approved contract. These examples are offline scenarios; no identity service, cloud endpoint or real account is contacted.

20 worked examples

1. Profile label differs from account

Problem: For the profile label differs from account scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The observed account differs from the approved account despite the familiar label.
  2. Stop before the resource operation and investigate the credential source.
text Synthetic caller and target record
profile label=lab
expected account=111122223333
observed account=444455556666

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Stop before the resource operation and investigate the credential source.

Why this result follows: A profile label does not establish the caller account. The conclusion is limited to the stated process, request and observations.

2. Wrong role in right account

Problem: For the wrong role in right account scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The accounts match but the observed role differs from the approved role.
  2. Stop and correct the role context through the approved process.
text Synthetic caller and target record
expected account=111122223333; role=reader
observed account=111122223333; role=admin

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Stop and correct the role context through the approved process.

Why this result follows: Matching an account alone does not identify the intended principal. The conclusion is limited to the stated process, request and observations.

3. Right caller, wrong Region

Problem: For the right caller, wrong region scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The caller account matches but the target Region does not.
  2. Stop and verify the intended regional target before the operation.
text Synthetic caller and target record
expected account=111122223333; Region=eu-west-1
observed caller account=111122223333
selected Region=us-east-1

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Stop and verify the intended regional target before the operation.

Why this result follows: Identity and Region are independent coordinates. The conclusion is limited to the stated process, request and observations.

4. Empty inventory in wrong Region

Problem: For the empty inventory in wrong region scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The empty list describes a different regional query than the approved target.
  2. Resource existence in eu-west-1 remains unknown.
text Synthetic caller and target record
expected inventory Region=eu-west-1
query Region=us-east-1
result=[]

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Resource existence in eu-west-1 remains unknown.

Why this result follows: An empty result is bounded by the query scope and time. The conclusion is limited to the stated process, request and observations.

5. Denied list is not empty

Problem: For the denied list is not empty scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The service rejected the request rather than returning a successful empty list.
  2. Record the inventory as unknown and review the exact permission.
text Synthetic caller and target record
query account=111122223333; Region=eu-west-1
result=AccessDenied
items=unknown

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Record the inventory as unknown and review the exact permission.

Why this result follows: A failed request supplies no count of matching resources. The conclusion is limited to the stated process, request and observations.

6. Correct caller, wrong object

Problem: For the correct caller, wrong object scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The principal matches but the requested key differs from the approved target.
  2. Stop before changing b.csv and confirm the intended key.
text Synthetic caller and target record
approved bucket=lab; key=reports/a.csv
request bucket=lab; key=reports/b.csv
caller=approved role

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Stop before changing b.csv and confirm the intended key.

Why this result follows: A caller check does not validate the target object. The conclusion is limited to the stated process, request and observations.

7. Correct identity, denied action

Problem: For the correct identity, denied action scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The identity observation matches but the requested service action is denied.
  2. Inspect applicable permissions and conditions for that object.
text Synthetic caller and target record
caller account and role=approved
action=s3:GetObject
resource=reports/a.csv
result=AccessDenied

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Inspect applicable permissions and conditions for that object.

Why this result follows: Authentication and authorization answer different questions. The conclusion is limited to the stated process, request and observations.

8. Explicit Region override

Problem: For the explicit region override scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The explicit CLI Region option takes precedence for this command.
  2. The selected Region is us-east-1 in the stated CLI scenario.
text Synthetic caller and target record
profile Region=eu-west-1
environment Region=us-west-2
CLI option --region=us-east-1

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: The selected Region is us-east-1 in the stated CLI scenario.

Why this result follows: Command-line Region overrides the corresponding environment and profile settings. The conclusion is limited to the stated process, request and observations.

9. Environment Region override

Problem: For the environment region override scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The environment setting overrides the profile Region in this scenario. Compare the explicit settings and the documented precedence for this command.
  2. The selected Region is us-west-2.
text Synthetic caller and target record
profile Region=eu-west-1
environment AWS_REGION=us-west-2
CLI Region option=absent

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: The selected Region is us-west-2.

Why this result follows: The CLI configuration order gives the environment setting precedence over the profile. The conclusion is limited to the stated process, request and observations.

10. Caller response lacks target

Problem: For the caller response lacks target scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The caller response identifies a session and account but no later object or Region.
  2. Target and Region remain unverified.
text Synthetic caller and target record
GetCallerIdentity Account=111122223333
Arn=arn:aws:sts::111122223333:assumed-role/reader/session-a
requested object and Region=not recorded

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Target and Region remain unverified.

Why this result follows: GetCallerIdentity describes the credentials of its own request, not a later target. The conclusion is limited to the stated process, request and observations.

11. Assumed role session

Problem: For the assumed role session scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The observed ARN describes a session of reader in the expected account.
  2. The role path matches this simplified record; target and permissions still require checks.
text Synthetic caller and target record
approved role=arn:aws:iam::111122223333:role/reader
observed=arn:aws:sts::111122223333:assumed-role/reader/session-a

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: The role path matches this simplified record; target and permissions still require checks.

Why this result follows: A role ARN and its assumed-role session ARN have different forms. The conclusion is limited to the stated process, request and observations.

12. Session name alone

Problem: For the session name alone scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The session label omits both approved identity coordinates.
  2. Caller match is unknown until account and role are observed.
text Synthetic caller and target record
approved account=111122223333; role=reader
observed session label=session-a
account and role evidence=missing

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Caller match is unknown until account and role are observed.

Why this result follows: A friendly session label is not a complete principal identity. The conclusion is limited to the stated process, request and observations.

13. Credential refresh

Problem: For the credential refresh scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The old observation predates a change to the credential context.
  2. Recheck the caller before the planned change.
text Synthetic caller and target record
09:00 caller observation=reader in account A
09:30 credential refresh=occurred
10:00 planned change=current caller=unknown

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Recheck the caller before the planned change.

Why this result follows: Identity evidence is bounded by the session and time observed. The conclusion is limited to the stated process, request and observations.

14. Different process

Problem: For the different process scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The shell observation does not identify credentials used by the separate job.
  2. The CI caller remains unknown until observed in its own context.
text Synthetic caller and target record
interactive shell caller=reader account A
CI job credential source=not recorded
planned operation=CI job

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: The CI caller remains unknown until observed in its own context.

Why this result follows: Separate processes can use different credential sources. The conclusion is limited to the stated process, request and observations.

15. Wrong partition

Problem: For the wrong partition scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The observed ARN partition differs from the approved commercial partition.
  2. Stop and resolve the partition and target mismatch.
text Synthetic caller and target record
expected partition=aws
observed ARN partition=aws-us-gov
account label=training

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Stop and resolve the partition and target mismatch.

Why this result follows: Partition is part of the ARN and target boundary. The conclusion is limited to the stated process, request and observations.

16. Stale target record

Problem: For the stale target record scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The inventory predates a period during which the resource could have changed.
  2. Obtain current scoped evidence before treating the old record as current state.
text Synthetic caller and target record
approved resource=i-example in Region A
inventory captured=Monday
change window=Tuesday
review=Wednesday

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Obtain current scoped evidence before treating the old record as current state.

Why this result follows: Evidence collection time limits its claim about later state. The conclusion is limited to the stated process, request and observations.

17. Resource name collision

Problem: For the resource name collision scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The names match but account and resource identifiers differ.
  2. Only account A / i-a matches the approved synthetic target.
text Synthetic caller and target record
account A Region R: name=api, id=i-a
account B Region R: name=api, id=i-b
approved target=account A / i-a

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Only account A / i-a matches the approved synthetic target.

Why this result follows: Resource labels do not replace account and resource identity. The conclusion is limited to the stated process, request and observations.

18. Caller check is not a permission test

Problem: For the caller check is not a permission test scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The identity call succeeded but the later action has not been authorized.
  2. DeleteObject permission remains unverified.
text Synthetic caller and target record
GetCallerIdentity=success
planned action=DeleteObject
policy review=not performed

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: DeleteObject permission remains unverified.

Why this result follows: A caller identity response is not an evaluation of a later service request. The conclusion is limited to the stated process, request and observations.

19. Safe evidence

Problem: For the safe evidence scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The record retains identity context without the secret token.
  2. Use the sanitized record as bounded caller evidence.
text Synthetic caller and target record
caller ARN=recorded
account=recorded
session token=excluded
time=recorded

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Use the sanitized record as bounded caller evidence.

Why this result follows: Identity diagnostics do not require copying credential secrets into logs. The conclusion is limited to the stated process, request and observations.

20. Corrected context retest

Problem: For the corrected context retest scenario, compare the concrete caller and target evidence in the fixture and decide what is established.

  1. The claimed correction is not followed by a fresh caller and target observation.
  2. Keep the operation on hold until the corrected context is verified.
text Synthetic caller and target record
expected=account A / reader / Region R
first observation=account B
configuration corrected=claimed
second observation=missing

This invented record makes no identity request or AWS change and contains no credentials.

Expected result: Keep the operation on hold until the corrected context is verified.

Why this result follows: A claimed configuration change is not evidence of the resulting effective context. The conclusion is limited to the stated process, request and observations.

Common errors and fixes

The profile name is treated as the account

Why it happens
A friendly label was confused with authenticated identity.
How to fix it
Compare the caller account and principal to the approved context.
Prevent it next time
Record both expected and observed identity for each investigation.

A caller check is treated as a permission test

Why it happens
Identity and authorization are separate questions.
How to fix it
Review the exact service action, resource and policy context.
Prevent it next time
Include an authorized positive and appropriate negative test.

A valid caller is used in the wrong Region

Why it happens
Region and identity were assumed to be the same setting.
How to fix it
Confirm the target resource and Region before the operation.
Prevent it next time
Keep scope and endpoint assumptions in the change record.

20 practice exercises

1. The profile is named lab, but the observed account differs from the approved record. What next?

Show hint

Compare the observed account with the approved account before any resource operation.

Show worked solution

Stop before the resource operation. Determine which credential source and account produced the observation, correct the approved context, and verify again without exposing credentials.

A familiar profile label cannot repair an account mismatch. Stop the operation, investigate the actual credential source and role, then repeat the caller and target checks after an authorized correction without retaining secrets.

Check your solution

  • Identify the mismatch as a stop condition.
  • Require a fresh sanitized identity check.

2. The observed role and account match, but an object read is denied. Does the identity check resolve the problem?

Show hint

Trace the denied action and exact object separately from the identity observation.

Show worked solution

No. Record the object and action, then examine the applicable permissions and conditions with the policy owner. A matching principal proves neither permission nor the correct object path.

Matching account and role identify the observed caller but do not grant GetObject or establish the correct object path. Review the action, resource and applicable policies and conditions with the owner before a narrow correction.

Check your solution

  • State that the caller check does not grant access.
  • Identify the exact object and policy context for review.

3. A profile is named production but the caller account is 444455556666 instead of approved 111122223333. What should happen?

Show hint

Compare the account IDs, not the label.

Show worked solution

Stop before the resource operation because the observed account differs from the approved account. Investigate the credential source and role configuration through the authorized process, then obtain fresh sanitized caller and target evidence before proceeding.

Check your solution

  • Identify the account mismatch.
  • Require a fresh check after correction.

4. The caller account matches but the role is admin while the change record approves reader. Is the context ready?

Show hint

Compare both principal and account.

Show worked solution

No. The account is correct but the observed role differs from the approved principal. Stop the operation, determine the effective credential and role path, and correct it using the authorized workflow before repeating the check.

Check your solution

  • Identify the role mismatch.
  • Do not proceed based on account alone.

5. An approved inventory targets eu-west-1 but the query runs in us-east-1 and returns no items. What is known?

Show hint

Bound the result by the queried Region.

Show worked solution

The result describes the successful query in us-east-1 under its filters and permissions. It does not establish absence in eu-west-1. Verify the approved target Region and obtain a current authorized inventory before considering resource creation.

Check your solution

  • Identify the queried Region.
  • Leave the target Region inventory unknown.

6. A list call returns AccessDenied in the correct account and Region. Is the inventory empty?

Show hint

A denial differs from a successful empty result.

Show worked solution

No. The request failed, so the resource count is unknown. Record the principal, action, target, time and safe error details, then review the applicable permissions with the owner instead of replacing the error with a zero count.

Check your solution

  • Record the denied operation.
  • Mark the count unknown.

7. The caller and Region match but the approved key is reports/a.csv and the request targets reports/b.csv. Decide whether to proceed.

Show hint

Compare the exact target key.

Show worked solution

Do not proceed with the described change. The identity and Region match, but the object key differs from the approved target. Confirm the intended key and obtain a revised authorization if the actual target must change.

Check your solution

  • Identify the key mismatch.
  • Stop before changing b.csv.

8. An approved role successfully calls GetCallerIdentity but its GetObject request is denied. Does the caller check prove access?

Show hint

Identity and service authorization are separate.

Show worked solution

No. The caller check identifies the credentials used for that request; it does not grant the subsequent object read. Review the exact action, bucket, key, conditions and applicable policies, including key access where relevant.

Check your solution

  • Distinguish identity from authorization.
  • Review the denied object request.

9. A CLI profile sets Region A, the environment sets Region B and an explicit --region selects Region C. Which Region applies?

Show hint

The command-line option takes precedence for this setting.

Show worked solution

In this stated AWS CLI configuration, the explicit Region C option overrides the environment and profile Region values. Confirm the selected Region matches the authorized target before any operation, and consult the tool’s configuration rules for other settings.

Check your solution

  • Select Region C.
  • Check the selected Region against the target.

10. The profile sets Region A, AWS_REGION sets Region B and no command-line Region is supplied. Which Region applies?

Show hint

Compare environment and profile precedence.

Show worked solution

The environment value B overrides the profile Region A in this CLI scenario. Record that effective selection separately from the caller identity and compare it to the approved target; a Region selection does not establish any permission.

Check your solution

  • Select Region B.
  • Keep Region separate from identity and permission.

11. GetCallerIdentity reports account A and a reader role session, but the later resource and Region are not recorded. What remains unknown?

Show hint

The identity response describes its own request.

Show worked solution

The exact later service target and Region remain unknown, and the identity result also does not establish authorization. Record the resource identifier, operation and scope independently, then compare them with the approved change contract.

Check your solution

  • Identify target and Region as unknown.
  • Do not infer permission.

12. An approved role ARN is compared to an assumed-role session ARN in the same account. What should the reviewer compare?

Show hint

A role and its session have different ARN forms.

Show worked solution

Compare the account and role path represented by the session against the approved role, and review session context according to the organization’s rules. A matching role path still leaves the target and action permissions to be checked independently.

Check your solution

  • Recognize the session ARN form.
  • Retain target and authorization checks.

13. A record contains only session name build-7, while the approved context specifies account A and role deployer. Is the identity verified?

Show hint

A session label omits important identity coordinates.

Show worked solution

No. The label alone does not establish the account or role. Obtain sanitized caller evidence for the actual session and compare both fields to the approved context, then verify target and permission before any change.

Check your solution

  • Identify missing account and role.
  • Do not treat the label as proof.

14. A caller was checked at 09:00, credentials refreshed at 09:30, and a change is planned for 10:00. Is the earlier check sufficient?

Show hint

Consider when the effective credential context changed.

Show worked solution

No. The earlier observation belongs to the prior context and does not establish the principal after the refresh. Recheck the current caller and target before the authorized operation, recording time and safe identity details without secrets.

Check your solution

  • Identify the intervening refresh.
  • Require a current caller check.

15. A developer shell uses account A, but the CI job’s credential source is unknown. Can the shell observation verify the job?

Show hint

Separate processes may select different credentials.

Show worked solution

No. The shell observation describes the shell request, not the CI job. Obtain sanitized identity and target evidence from the job’s own authorized context and compare it to the approved operation before allowing a change.

Check your solution

  • Identify the separate process.
  • Require job-specific caller evidence.

16. The approved ARN uses partition aws while the observed caller ARN uses aws-us-gov. What is the decision?

Show hint

Compare the partition field.

Show worked solution

Stop because the observed partition differs from the approved context. Resolve the credential source and intended target using the authorized process, then repeat the identity and scope checks. A similar friendly account label does not resolve the mismatch.

Check your solution

  • Identify the partition mismatch.
  • Require a corrected-context retest.

17. An inventory captured Monday precedes a Tuesday change window; the review is Wednesday. Can it prove current state?

Show hint

Evidence has a collection time.

Show worked solution

No. The resource could have changed during the intervening window, so the Monday record is historical evidence only. Obtain a current authorized observation with account, Region, resource and timestamp before deciding on a change.

Check your solution

  • Identify the stale observation.
  • Require a current scoped inventory.

18. Two accounts each contain a resource named api; their IDs are i-a and i-b. The approved target is account A / i-a. Which matches?

Show hint

Compare account and resource identifier together.

Show worked solution

Only account A / i-a matches the stated approved target. The shared name does not identify the intended resource in account B. Verify the current account, Region and resource identity before any operation.

Check your solution

  • Select account A / i-a.
  • Reject name-only matching.

19. A diagnostic record includes the caller ARN and time plus a session token. How should it be made safe?

Show hint

The token is secret credential material.

Show worked solution

Remove the session token and any signed request material from the diagnostic record using the approved handling process. Keep only necessary sanitized account, principal, time and safe request details; investigate credential exposure according to the organization’s procedures.

Check your solution

  • Exclude the session token.
  • Retain only necessary sanitized context.

20. A wrong-account observation is followed by a claimed configuration correction, but no second identity check. Can the change proceed?

Show hint

A claimed correction is not observed effective context.

Show worked solution

Keep the change on hold. Obtain fresh caller, account, Region and exact target evidence in the same process that will perform the operation, then compare it with the approved record. A configuration edit alone does not prove the intended credentials are active.

Check your solution

  • Require a fresh observation.
  • Compare caller and target in the operating process.

Key takeaways

  • A profile label is not proof of the active principal.
  • Identity, target scope and authorization require separate checks.
  • Use sanitized evidence and bounded lab tests.
  • A profile label and a session name do not prove the effective principal.
  • Caller identity, target scope and permission require separate evidence.
  • An observation is bounded by the process, session and time in which it was made.

Official references