AX 4.0 Financials : MB6-507 Exam
Product DescriptionExam Number/Code: MB6-507
Exam Name: AX 4.0 Financials
“AX 4.0 Financials”, also known as MB6-507 exam, is a Microsoft certification. With the complete collection of questions and answers, Pass4sure has assembled to take you through 69 Q&A to your MB6-507 Exam preparation. In the MB6-507 exam resources, you will cover every field and category in Microsoft Business Solutions helping to ready you for your successful Microsoft Certification.
QUESTION 1
You work as an application developer at pass4sure.com. pass4sure.com stores data in
a byte array named dataArray.
You have been given the task of ensuring that this data is protected against
corruption and tampering. You are planning to employ a HashAlgorithm object to
achieve this objective.
What should you do?
A. Use the following code to generate a hash value for the dataArray object:
hash.GenerateHash (dataArray);
B. Use the following code to generate a hash value for the dataArray object:
hash.ComputeHash (dataArray);
C. Use the following code to generate a hash value for the dataArray object:
hash. Hash (dataArray);
D. Use the following code to generate a hash value for the dataArray object:
hash.Compute (dataArray);
Answer: B
pass4sure.org – The Power of Knowing
Explanation: This option will return a byte array representing the hash value. The
HashAlgorithm abstract class is the base class for all hash algorithm provider
classes, including the MD5CryptoServiceProvider and SHA1CryptoServiceProvider
classes. They all inherit the ComputeHash method from the HashAlgorithm class.
Incorrect Answers:
A, C, D: These options are incorrect because these methods do not exist in the
HashAlgorithm class.
QUESTION 2
You work as an application developer at Certkiller .com. Certkiller .com has been
contracted by the local hospital to create an application that forwards private
patient information to various insurance providers.
The patient information is sent via a secured VPN to ensure confidentiality. You
also need to guarantee data integrity, and verify that the patient data originated
from the local hospital. To achieve this objective, you elect to utilize asymmetric
encryption and a digital signature technology.
What code would you use to complete your task?
A. public byte [] SignAndHash (byte [] PatientInfo, RSAParameters RSAInfo)
{
RSACryptoServiceProvider RSAProvider = new RSACryptoServiceProvider ();
RSAProvider.ImportParameters (RSAInfo);
Return RSAProvider.Encrypt (PatientInfo, true);
}
B. public byte [] SignAndHash (byte [] PatientInfo, DSAParameters DSAInfo)
{
DSACryptoServiceProvider DSAProvider = new DSACryptoServiceProvider ();
DSAProvider.ImportParameters (DSAInfo);
Return DSAProvider.SignHash (PatientInfo);
}
C. public byte [] SignAndHash (byte [] PatientInfo, RSAParameters RSAInfo)
{
RSACryptoServiceProvider RSAProvider = new RSACryptoServiceProvider ();
RSAProvider.ImportParameters (RSAInfo);
Return RSAProvider.SignEncrypt (PatientInfo, true);
}
D. public byte [] SignAndHash (byte [] PatientInfo, DSAParameters DSAInfo)
{
DSACryptoServiceProvider DSAProvider = new DSACryptoServiceProvider ();
DSAProvider.ImportParameters (DSAInfo);
Return DSAProvider.SignData (PatientInfo);
}
Answer: D
pass4sure.org – The Power of Knowing
Explanation: The DSACryptoServiceProvider class represents a managed
cryptographic provider of the Digital Signature Algorithm (DSA) asymmetric
algorithm. The DSA asymmetric algorithm is commonly used for digital signatures
and data integrity, supporting 1024 bit keys. When instantiating a
DSACryptoServiceProvider object, a public/private key pair is generated and a
default hash is assigned. Thus, to use a particular private key to sign data, a public
key to verify data, or a particular hash, you must invoke the ImportParemeters
method for the current DSACryptoServiceProvider to load custom settings. The
SignData method takes a byte array representing the original data and returns the
hashed and then signed byte array.
Incorrect Answers:
A, C: You should not use the code fragments that specify the
RSACryptoServiceProvider object because the method invocations are incorrect.
B: The SignHash method is used to sign a message digest, not the original data.
QUESTION 3
You work as an application developer at Certkiller .com. A fellow developer named
Andy Booth has recently created an application.
The application receives confidential transaction data from Certkiller .com’s clients,
which it secures using the TripleDESCryptoServiceProvider class. You are
currently reviewing this application, and need to decrypt a byte array of cipher text.
What code should you use to achieve this objective?
A. public byte [] DecryptData (byte [] cipherText, TripleDESCryptoServiceProvider
secretKey)
{
MemorySream ms = new MemorySream (cipherText);
CryptoSream cs = new CryptoSream (ms, SecretKey, CryptoSreamMode.Read);
byte [] data = new byte [ms.Length - 1];
cs.Read (data, 0, data.Length);
cs.Close ();
ms.Close ();
return data;
}
B. public byte [] DecryptData (byte [] cipherText, TripleDESCryptoServiceProvider
secretKey)
{
MemorySream ms = new MemorySream (cipherText);
CryptoSream cs = new CryptoSream (ms, secretKey.CreateDecryptor (),
CryptoSreamMode.Read);
byte [] data = new byte [ms.Length - 1];
cs.Read (data, 0, data.Length);
cs.Close ();
ms.Close ();
return data;
}
Actualtests.org – The Power of Knowing
C. public byte [] DecryptData (byte [] cipherText, TripleDESCryptoServiceProvider
secretKey)
{
MemorySream ms = new MemorySream (secret.Key);
CryptoSreamMode.Read);
byte [] data = ms.Decrypt (cipherText);
cs.Read (data, 0, data.Length);
ms.Close ();
return data;
}
D. public byte [] DecryptData (byte [] cipherText, TripleDESCryptoServiceProvider
secretKey)
{
CryptoSream cs = new CryptoSream (secretKey);
byte [] data = ms.Decrypt (cipherText);
cs.Read (data, 0, data.Length);
ms.Close ();
return data;
}
Answer: B
Explanation: This code instantiates a CryptoStream object, specifies the
ICryptoTransform object to encrypt data, decrypts the CipherText byte array, and
returns the encrypted byte array. The TripleDESCryptoServiceProvider class
represents a managed cryptographic provider of the Data Encryption Standard
(DES) symmetric algorithm. The DES symmetric algorithm is commonly used for
dat confidentiality, and it supports 64-bit keys. When you instantiate a
TripleDESCryptoServiceProvider object, a secret key for encryption and an
initialization vector (IV) are created. Because the same key and IV are needed for
encryption and decryption, the CreateEncryptor and CreateDecryptor methods
generate the appropriate ICryptoTransform object to alter the data.
Incorrect Answers:
A: You should not use the code that does not invoke the CreatDecryptor method
because this is required when instantiating a CryptoStream object.
C, D: You should not use the code fragments that invoke the Decrypt method
because no such method exists in the CryptoStream class.